package com.aliyun.messagemgt.usercenter;

import com.alibaba.algo.cooperation.common.BaseResult;
import com.alibaba.algo.cooperation.common.PagerEntity;
import com.alibaba.algo.cooperation.feign.service.RoleFeignService;
import com.alibaba.algo.cooperation.feign.vo.req.FeignSelectRoleListRequestVO;
import com.alibaba.algo.cooperation.feign.vo.res.FeignRoleListResponseVO;
import com.alibaba.fastjson.JSON;
import com.aliyun.messagemgt.Application;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @author : WangZhiPan
 * @date : 2021/9/23 14:42
 */
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = Application.class)
@Slf4j
public class RoleFeignServiceTest {


    @Autowired
    RoleFeignService feignService;


    @Test
    public void testSelectPage() {
        FeignSelectRoleListRequestVO vo = new FeignSelectRoleListRequestVO();
        BaseResult<PagerEntity<FeignRoleListResponseVO>> baseR = feignService.selectPage(vo);
        log.info("resp={}", JSON.toJSONString(baseR));
    }
}
